package services;

import java.util.ArrayList;
import java.util.List;

import model.Student;

public class StudentMock 
{
   private static StudentMock studentMock;
   private static List<Student> students = new ArrayList<Student>();;
	
   private StudentMock(){}
   
   public static StudentMock getInstance()
   {
	  return studentMock == null ? new StudentMock()
                                 : studentMock;
   }
   
   public Boolean contains(Student student)
   {
	   return students.contains(student);
   }
    
   public void insert(Student student)
   {
	  students.add(student); 
   }

   public void remove(Student student)
   {
	   students.remove(student);
   }
   
}
